package com.pk.serviceprovider;


class Service1Provider implements ServiceProvider {

    @Override
    public Service newService() {
        return new Service1();
    }
}

class Service1 implements Service{

    @Override
    public void doService() {
        System.out.println("service1 do...");
    }
}